﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="DC_CrimesDtls.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.DC_CrimesDtls" %>

<%@ Register src="../Controls/EmployeeTypeCombo.ascx" tagname="EmployeeTypeCombo" tagprefix="uc1" %>
<%@ Register src="../Controls/JobSiteCombo.ascx" tagname="JobSiteCombo" tagprefix="uc2" %>
<%@ Register src="../Controls/MasterYear.ascx" tagname="MasterYear" tagprefix="uc3" %>
<%@ Register src="../Controls/user.ascx" tagname="user" tagprefix="uc4" %>

<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">  
<script type="text/javascript">   

    
           function onTextChange(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
          } 
          
</script>
      
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>
    
    
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
    <telerik:RadWindow 
        id="ProjectDtls" 
        runat="server"
        showcontentduringload="false"
        VisibleStatusbar="false"
        title="รายการโยกย้าย"
        width="1100px"
        Height="600px"        
        Modal="true"
        behaviors="Close">
    </telerik:RadWindow>
</Windows>

        <Windows>
            <telerik:RadWindow 
                ID="RadWindow1"  
                DestroyOnClose = "true"               
                Modal ="true"                
                VisibleStatusbar ="false"
                runat="server">
            </telerik:RadWindow>
        </Windows>


</telerik:RadWindowManager>
    
    <title>ผลการประเมินการปฏิบัติราชการ</title>
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" /> 
    
      <asp:panel ID="Panel6" runat="server" >
    <table width="1000" cellpadding="0" cellspacing="0">
        <tr>
            <td width="280" valign = "top">
               <!-- <uc4:user ID="user1" runat="server" /> -->
            </td>
            
              <td width="20" ></td>
            
            <td>
            
            <div class="moduleDivSlim700">
                    <div class="moduleDivBottom700">
                         <asp:Panel ID="PanelFilter" runat="server" Width="700px" ScrollBars="Auto">
                            <table align = "center" width = "650px">
                                    <tr>
                                        <td  >
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                        
                                       <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                        </asp:Panel>
                    </div>
                </div>
            
            
            </td>
            
          </tr>
          </table>
          

          <td>
   
          
          
   
          
          
            
          
          </td>
          
          
          </tr>
          
          
          
          
          
          
   
          <td colspan = "3">
        <div class="moduleDivSlim1000">
        <div class="moduleDivBottom1000">
        <table align="center" width ="100%" >
        <tr>
            <td align="left" class="tableHeader">
                ข้อมูลกรณีความผิด</td>
        </tr>
        </table>
        <table width ="100%" >
        <tr>
        <td >
        <asp:Panel ID="PanelGrid" 
            runat="server" 
          ScrollBars="Auto" >
          <telerik:RadGrid ID="RadGrid2" runat="server" AllowFilteringByColumn="True" AllowAutomaticDeletes="True"
                    AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                    EnableAJAXLoadingTemplate="True" GridLines="None" 
                    OnItemCommand="RadGrid2_ItemCommand" Skin="Outlook" Width="100%" 
                    onitemdatabound="RadGrid2_ItemDataBound" 
                onneeddatasource="RadGrid2_NeedDataSource">
                    <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                        ClientDataKeyNames="crd_seq" CommandItemDisplay="Top" DataKeyNames="crd_seq" 
                        InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                        <CommandItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td>
                                        <asp:LinkButton ID="cmdAddNew" runat="server" CausesValidation="False" 
                                            CommandName="InitInsert" 
                                            Visible="<%# !RadGrid2.MasterTableView.IsItemInserted && RadGrid2.EditIndexes.Count <= 0 %>"> <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                            style="border: 0px; vertical-align: middle;" /> เพิ่มกรณีความผิด</asp:LinkButton>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td align="right">
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
  
                        <ExpandCollapseColumn Visible="True">
                        </ExpandCollapseColumn>
                        
                                              
                        
                        
                        
                                                 <GroupByExpressions>
                            <telerik:GridGroupByExpression>
                                <GroupByFields>
                                    <telerik:GridGroupByField 
                                        FieldName="cr_name" 
                                        HeaderText="ฐานความผิด" />
                                </GroupByFields>
                                <SelectFields>
                                    <telerik:GridGroupByField 
                                        FieldName="cr_name" 
                                        HeaderText="ฐานความผิด :  "  
                                        HeaderValueSeparator = " "

                           />
                                </SelectFields>
                            </telerik:GridGroupByExpression>
                        </GroupByExpressions>
                        
                        
                        
                        
                        
                        
                        
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" 
                                EditText="คลิกเพื่อแก้ไขข้อมูล">
                                 <HeaderStyle HorizontalAlign="Center" Width="10%" />
                                <ItemStyle HorizontalAlign="Center" Width="10%" />
                            </telerik:GridEditCommandColumn>
                       
                       
                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
                                
                                
                                ConfirmDialogType="RadWindow" ConfirmText="ลบข้อมูลที่เลือก?" 
                                Text="คลิกเพื่อลบข้อมูล" UniqueName="column1">
                                <HeaderStyle HorizontalAlign="Center" Width="10%" />
                                <ItemStyle HorizontalAlign="Center" Width="10%" />
                            </telerik:GridButtonColumn>
                            
                            
                            
                             <telerik:GridTemplateColumn AutoPostBackOnFilter="true" ShowFilterIcon="false" 
                CurrentFilterFunction="Contains" DataField="crd_name" FilterControlWidth="100%" 
                HeaderStyle-HorizontalAlign="Center" HeaderText="ชื่อกรณีความผิด" >
                  <HeaderStyle HorizontalAlign="Center" Width="60%" />
                                <ItemStyle HorizontalAlign="Center" Width="60%" />
                                
                <ItemTemplate>              
        <%# Eval("crd_name") %>
                </ItemTemplate>
                
                                
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
                            
                           
                            
                            
            <telerik:GridTemplateColumn AutoPostBackOnFilter="true" ShowFilterIcon="false" 
                CurrentFilterFunction="Contains" DataField="record_status_name" FilterControlWidth="100%" 
                HeaderStyle-HorizontalAlign="Center" HeaderText="สถานะ" >
                  <HeaderStyle HorizontalAlign="Center" Width="20%" />
                                <ItemStyle HorizontalAlign="Center" Width="20%" />
                                
                <ItemTemplate>              
        <%# Eval("record_status_name")%>
                </ItemTemplate>
                
                                
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
                            
                            
                            
                            
                            
                      
                            
                        </Columns>
                        <EditFormSettings EditFormType="WebUserControl"  
                            UserControlName="../UserControls/DC_crimesDtls.ascx">
                            <EditColumn UniqueName="EditCommandColumn1"
                              
                            >
                            </EditColumn>
                        </EditFormSettings>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </MasterTableView>
                    <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                    </ClientSettings>
                </telerik:RadGrid>
            </asp:Panel>
                </td>
                </tr>
                </table>
                </div>
</div>
</td>
</tr>

</asp:panel>

</asp:Content>
